﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class NPCTask:NPC
    {
        public string  task { get; set; }
        public NPCTask(string name, NPCType npctype, string task) : base(name, npctype)
        {
            this.task = task;
        }
        public override void Spaek()
        {
            Console.WriteLine("{0}:你好！{1}",base.name,this.task);
        }
    }
}
